home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
bbs
/
sam_v12.exe
/
SAM.DOC
< prev
next >
Wrap
Text File
|
1992-12-02
|
12KB
|
270 lines
Slickware is Copy(c)right 1989,1992 by Gary M. Raymond, New Orleans, La.
Slick Answer Machine Program V1.2 by Gary M. Raymond
Simple <Software> Company
HOME of SlickWare
Gary M. Raymond
P.O.Box 8184
New Orleans, La. 70182
(504) 288-6550
Compuserve 70613,3165
====================================================================
Files Provided:
SAM.COM Slick Answer Machine
SAM.DOC This document.
SAM.TXT Hello text file (sent to logon)
SAM.CFG Modem Initialization string file
SAMRUN.BAT Batch for running external application
Why SAM? SAM is intended to do two things.
First, to provide a simple way to inform your users when your BBS or
other system is temporarily off line.
Second, to provide a doorway to DOS so you can access your operating
system remotely or load and run a modem software game or other similar
application. CAUTION: If you use it to drop to dos, be aware that
unless you are running a product line DOORWAY (that provides password
protection) anyone knowing your routine could gain access as well.
Running SAM, without a parameter, will provide this help info:
====================================================================
The Correct Syntax is SAM # (i.e. SAM 1)"
1 = COM1,2400b,8N1"
2 = COM2,2400b,8N1"
3 = COM3,2400b,8N1"
4 = COM4,2400b,8N1"
If the port is active, you will see an OK"
immediately following the setup string."
====================================================================
What makes SAM a very useful and easy to use program is its
simplicity yet abundant versatility. SAM was written in ASIC. A "C"
constructed compiler that produces clean, tight, fast code modules.
The general makeup of the serial portions of the code involve polling
the UART port. To avoid most of the pitfalls in using BIOS services
to find port addresses, direct addressing is also used. The only
limit here is in having to choose the STANDARD or IBM default
addresses of 3F8, 2F8, 3E8, 2E8 for port 1 through 4 respectively.
Also, to keep it even simpler, all ports are set up for 2400 baud at
8 data bits, No parity, and 1 stopbit. Upon registration, I will send
you a version set to what ever baud rate you prefer.
All files must reside in the same directory. If SAM cannot locate
a required file, it will inform you with these messages:
SAM incapable of loading! File"
missing (SAM.CFG), Recheck!"
SAM incapable of loading! File"
missing (SAM.TXT), Recheck!"
In either case, SAM will return you to the system prompt for further
investigation.
Perhaps the most critical part is the modem string that should be
placed in the SAM.CFG file. Lets take a moment to examine it switch
by switch:
ATV0M1&D2X1S0=1S7=45
AT = modem attention command
V0 = have modem give numeric command replies (verrry important)
M1 = turn speaker off after connect
&D2 = allow software control of data line (wont hangup otherwise)
X1 = allow standard command replies
S0=1 = set to answer phone on first ring (you may change this)
S7=45 = hangup if no carrier in 45 seconds
If any ONE switch is invalid for your brand of modem, the entire
string will fail resulting in the following message:
ERROR
Check Modem Initialization string!"
The quickest way to test each switch is to type it in terminal mode
using your favorite comm program and see if they echo OK. Remember,
each switch must be preceded by AT. (ATM1 etc)
If the port you select is inoperative, you will get the following
message:
Your Modem is NOT echoing OK!. Suggest you"
ensure you are using the active com port!"
You cannot use the same port your mouse is connected to. For that
matter, you cannot use any serial port that is already dedicated
to another device. (light pen, mouse, digitizer etc.)
SAM.TXT (as supplied)
====================================================================
Greetings Logon!
You have reached our On-Line
Service. Unfortunately we are
OFF-LINE for regular maintenance.
Please try again in 12 hours.
Best Regards
SYSOP
====================================================================
You may alter this message file to suit your needs. I suggest keeping
it short and sweet. I also suggest having at least two blank lines
before text begins to allow a few carriage return, linefeeds to first
clear the modem.
SAMRUN.BAT
====================================================================
DROPDOS.BAT
====================================================================
You will note that SAMRUN.BAT is running another batch file called
DROPDOS.BAT. This is just a matter of convience as the content of
DROPDOS could well be contained in SAMRUN. If there is no SAMRUN.BAT
or it is empty, SAM will simple recycle after the SAM.TXT message.
Similarily, if SAM.TXT is empty, no message is first transmitted
and SAM immediately loads SAMRUN.BAT. This provides a lot of
versatility.
====================================================================
(method of dropping to DOS)
DROPDOS.BAT
@ECHO OFF
CTTY COM2: (set this to com port in use)
C:\COMMAND.COM (path to command processor)
CTTY CON
Personally, I would suggest you use DOORWAY or GATEWAY. In some
cases (because of problems with redirection and the CTTY dos
command) you really have no choice.
====================================================================
Finally, if all is well, you will see the following message, indicating
SAM is ready to answer the phone........
Accessing COM2!
Hit <Esc> to Exit!"
ATV0M1&D2X1S0=1S7=45
OK
CAVEAT: When there is a problem with computer hardware or software,
there is always an answer lurking somewhere. Using serial devices
and software, is one of the more perplexing aspects of this axiom.
Unfortunately, sometimes the answer turns out to be the dirty word
"incompatible". However, the simplicity of SAM almost insures that
it will work on even the weirdest of iron (modems). To that end, I
have coded all critical timing aspects to be independent of CPU speed
as well, so as to allow SAM to run on processors from 4.77 to 60mhz.
This built in constraint (as see by the modem string slowly echoing
on the screen) is a necessary evil to ensure the widest compatibility.
====================================================================
SAM V1.2 12/01/92 Bug fix when using COM4 (2E8,IRQ3)
SAM V1.1 11/01/92 First release
====================================================================
┌─────────┐
│ MEMBER │ Society of
│ ┌──────┴──┐ Independent
│ │ │ Shareware
└──┤ ■ │ Authors
│ ║ │
└────╨────┘
This program is produced by a member of the Society of Independent
Shareware Authors (SISA). The Society wants to ensure that all
valid shareware principle actually work for you and SISA members.
The principle behind shareware distribution is simple; try before
you buy. Society members agree to license all shareware for a minimum
of 10 days, free of charge, to first time users as an evaluation period.
After 10 days, buyers are then obligated to license their copy with
the Society member. Society members are obligated to provide high
quality, useful shareware, but, are free to choose whatever marketing
methods suit their specific needs. SISA sanctioned marketing methods
include: demonstration versions; providing printed documentation
after purchase; registration keys that unlock additional features
not necessary to determine basic usefulness; and, providing bug
fixes free of charge. Any Shareware author may become a member of
SISA without cost by simply agreeing to the above conditions and
displaying, at their option, this logo in their documentation.
====================================================================
WARRANTY:
Software:
Simple Software warrants that the software contained herein will
perform in substantial compliance with the documentation
accompanying the software. If you report, in writing, a significant
defect to us, and we are unable to correct it within 90 days of the
date you report the defect, you may return the software and
accompanying materials, and we will refund the purchase price.
Diskette's and Documentation:
Simple Software, warrants all diskette's and documentation to be
free of defects in materials for a period of 30 days from the date
of purchase. In the event of notification within the warranty period
of defects in any materials, Simple Software will replace the
defective diskette or documentation.
Remedies:
The remedy for breach of the warranty shall be limited to
replacement and shall not encompass any other damages, including but
not limited to loss of profit, special, incidental, consequential,
or similar damages, losses, or claims.
DISCLAIMER:
Simple Software specifically disclaims all other warranties,
expressed or implied, including but not limited to, implied
warranties of merchantability and fitness for a particular purpose
with respect to defects in the diskette and documentation, and the
program license granted herein, in particular, and without limiting
operation of the program license with respect to any particular
application, use, or purpose. In no event shall Simple Software be
liable for any loss of profit or any other commercial damage,
including but not limited to special, incidental, consequential or
other damages.
GOVERNING LAW:
This statement shall be construed, interpreted, and governed by the
laws of the State of Louisiana.
====================================================================
Registering your copy will help continue the competitive advantages
of providing economical shareware. You will be sent the latest
version and automatically notified of all upgrades and bug fixes.
Yes Gary, I enjoy your program and would like to register and
obtain the latest version.
Name_____________________________________________________________
Mailing Address__________________________________________________
City & State ___________________________________________________
ZIP _____________________________ Phone _________________________
Send $9 + $1 (ship & hand) check or money order to:
Gary M. Raymond
P.O.Box 8184
New Orleans, La. 70182
504-288-6550
Compuserve 70613,3165
====================================================================
EOF